class CommonMessageListResponseEntity {
  int? code;
  int? count;
  List<CommonMessageItem>? data;
  String? message;

  CommonMessageListResponseEntity({this.code, this.count, this.data, this.message});

  CommonMessageListResponseEntity.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    count = json['count'];
    if (json['data'] != null) {
      data = [];
      json['data'].forEach((v) {
        data!.add(new CommonMessageItem.fromJson(v));
      });
    }
    message = json['message'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    data['count'] = this.count;
    if (this.data != null) {
      data['data'] = this.data!.map((v) => v.toJson()).toList();
    }
    data['message'] = this.message;
    return data;
  }
}

class CommonMessageItem {
  String? messageCode;
  String? messageTitle;
  String? messageContent;
  String? url;
  String? sendUser;
  String? sendUserName;
  String? noticeUser;
  String? noticeUserName;
  String? isRead;
  String? sendTime;
  String? readTime;
  String? projCode;
  String? projName;
  String? businessCode;
  String? funCode;
  String? appCode;
  String? messageType;
  String? isDeal;
  String? dealTime;

  CommonMessageItem(
      {this.messageCode,
        this.messageTitle,
        this.messageContent,
        this.url,
        this.sendUser,
        this.sendUserName,
        this.noticeUser,
        this.noticeUserName,
        this.isRead,
        this.sendTime,
        this.readTime,
        this.projCode,
        this.projName,
        this.businessCode,
        this.funCode,
        this.appCode,
        this.messageType,
        this.isDeal,
        this.dealTime});

  CommonMessageItem.fromJson(Map<String, dynamic> json) {
    messageCode = json['messageCode'];
    messageTitle = json['messageTitle'];
    messageContent = json['messageContent'];
    url = json['url'];
    sendUser = json['sendUser'];
    sendUserName = json['sendUserName'];
    noticeUser = json['noticeUser'];
    noticeUserName = json['noticeUserName'];
    isRead = json['isRead'];
    sendTime = json['sendTime'];
    readTime = json['readTime'];
    projCode = json['projCode'];
    projName = json['projName'];
    businessCode = json['businessCode'];
    funCode = json['funCode'];
    appCode = json['appCode'];
    messageType = json['messageType'];
    isDeal = json['isDeal'];
    dealTime = json['dealTime'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['messageCode'] = this.messageCode;
    data['messageTitle'] = this.messageTitle;
    data['messageContent'] = this.messageContent;
    data['url'] = this.url;
    data['sendUser'] = this.sendUser;
    data['sendUserName'] = this.sendUserName;
    data['noticeUser'] = this.noticeUser;
    data['noticeUserName'] = this.noticeUserName;
    data['isRead'] = this.isRead;
    data['sendTime'] = this.sendTime;
    data['readTime'] = this.readTime;
    data['projCode'] = this.projCode;
    data['projName'] = this.projName;
    data['businessCode'] = this.businessCode;
    data['funCode'] = this.funCode;
    data['appCode'] = this.appCode;
    data['messageType'] = this.messageType;
    data['isDeal'] = this.isDeal;
    data['dealTime'] = this.dealTime;
    return data;
  }
}
